import request from "../request"
//巡检方案列表查询
export function getPlanQuery(data){
  return request({
    url: "/car/patrol/v/task/query",
    method: "post",
    data,
  });
}
//巡检任务管理列表展开
export function getPlanQueryCurrent(data){
  return request({
    url: "/car/patrol/v/task/query/current",
    method: "post",
    data,
  });
}
// 查询市列表
export function getPlanCity(data){
  return request({
    url: "/car/patrol/v/station/query/city",
    method: "get",
    params:data,
  });
}
//查询区列表
export function getPlanDist(data){
  return request({
    url: "/car/patrol/v/station/query/dist",
    method: "post",
    data,
  });
}
// 查询站列表
export function getPlanStat(data){
  return request({
    url: "/car/patrol/v/station/query/stat",
    method: "post",
    data,
  });
}
//新增任务
export function getTaskAdd(data){
  return request({
    url: "/car/patrol/v/task/add",
    method: "post",
    data:data,
  });
}
//删除
export function getTaskDelete(data){
  return request({
    url: "/car/patrol/v/task/delet",
    method: "post",
    data:data,
  });
}
//修改
export function getTaskUpt(data){
  return request({
    url: "/car/patrol/v/task/current/upt",
    method: "post",
    data:data,
  });
}
// 查询某一月的站损统计
export function stationLossMonth(data){
  return request({
    url: "/car/digitalTwin/stationLossMonth/queryPage",
    method: "post",
    data:data,
  });
}
